/**
 * 项目名称：MSHF
 * 包名称：com.mt.component.domain
 * 文件名称：Message.java
 */
package com.mt.component.message;

/**
 * 类名称：Message <br>
 * 类描述： <br>
 * 创建人： 马腾 <br>
 * 创建时间：Dec 1, 2012 4:35:53 PM <br>
 * 修改人： 马腾 <br>
 * 修改时间：Dec 1, 2012 4:35:53 PM <br>
 */
public class Message {
	
	public static final String ERROR = "ERROR";
	public static final String SUCCESS = "SUCCESS";
	public static final String FAULT = "FAULT";
	
	private String type;
	private Object object;
	private String result;
	
	public Message(String type, Object object) {
		super();
		this.type = type;
		this.object = object;
	}

	public Message(String type, String result) {
		super();
		this.type = type;
		this.result = result;
	}

	public Message(String type, Object object, String result) {
		super();
		this.type = type;
		this.object = object;
		this.result = result;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}
}
